package com.ziyun.erp.modules.business.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ziyun.erp.modules.business.dao.BusinessMessagePeopleDao;
import com.ziyun.erp.modules.business.entity.BusinessMessagePeopleEntity;
import com.ziyun.erp.modules.business.service.BusinessMessagePeopleService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("businessMessagePeopleService")
public class BusinessMessagePeopleServiceImpl extends ServiceImpl<BusinessMessagePeopleDao, BusinessMessagePeopleEntity> implements BusinessMessagePeopleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BusinessMessagePeopleEntity> page = this.selectPage(
                new Query<BusinessMessagePeopleEntity>(params).getPage(),
                new EntityWrapper<BusinessMessagePeopleEntity>()
        );

        return new PageUtils(page);
    }

}
